package com.itguigu.project.ai.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @author lxr
 * @date 2025/11/8 11:27
 */

/**
 *参数说明
 * chatModel = 使用的模型
 * chatMemory = 持久化数据
 * chatMemoryProvider = 数据隔离（分离小李和李四的聊天记录）
 **/
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "qwenChatModel",chatMemory = "chatMemory",chatMemoryProvider = "chatMemoryProvider")
public interface PerformerService {

    @SystemMessage(value = "你是中国内地演员蔡徐坤,请回答我的问题")
    public String chatTest(@MemoryId int memoryId, @UserMessage String userMessage);

}
